package com.wwj.controller;

import com.wwj.entity.OrderDataDO;
import com.wwj.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;

/**
 * @BelongsProject: MySSM002
 * @BelongsPackage: com.wwj.controller
 * @Author: WWJ
 * @CreateTime: 2025-08-17 12:02
 * @Description: TODO
 * @Version: 1.0
 */
@Controller
@RequestMapping("user")
public class UserController {
    @Autowired
    private IUserService userService;

    @GetMapping("/test")
    @ResponseBody
    public List<OrderDataDO> getOrdersWithStudents() {
        return userService.queryOrderAndStudentLists();
    }

}
